package com.wfk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户金额明细表
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_money_details")
public class MoneyDetails implements Serializable {
	@TableField(exist=false)
	private String start;
	@TableField(exist=false)
	private String end;
	
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 流水号
	 */
	private String paycode;

	/**
	 * 用户id
	 */
	private Integer cid;

	/**
	 * 操作类型见枚举类
	 */
	private Integer typeid;

	/**
	 * 1收入 0支出
	 */
	private Integer isout;

	/**
	 * 上一次金额
	 */
	private BigDecimal original;

	/**
	 * 本次操作金额
	 */
	private BigDecimal cost;

	/**
	 * 最后金额
	 */
	private BigDecimal last;

	/**
	 * 创建时间
	 */
	@JSONField(format="yyyy-MM-dd HH:mm")
	private Date createtime;

	/**
	 * 修改时间 用来做乐观锁
	 */
	private Date updatetime;

	/**
	 * 备注
	 */
	private String remark;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPaycode() {
		return paycode;
	}

	public void setPaycode(String paycode) {
		this.paycode = paycode;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getTypeid() {
		return typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public Integer getIsout() {
		return isout;
	}

	public void setIsout(Integer isout) {
		this.isout = isout;
	}

	public BigDecimal getOriginal() {
		return original;
	}

	public void setOriginal(BigDecimal original) {
		this.original = original;
	}

	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getLast() {
		return last;
	}

	public void setLast(BigDecimal last) {
		this.last = last;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

}
